package lumis.portal.lock.clock;

import lumis.portal.PortalException;
import lumis.portal.authentication.SessionConfig;
import lumis.portal.clock.ClockConfig;
import lumis.portal.manager.ManagerFactory;
import lumis.portal.service.GenericServiceClock;
import lumis.portal.service.ServiceException;

/**
 * Clock that releases expired locks.
 *
 * @version $Revision: 9430 $ $Date: 2008-06-20 13:08:37 -0300 (Fri, 20 Jun 2008) $
 * @since 4.0.9
 */
public class LockClock extends GenericServiceClock
{
	public void doTick(SessionConfig sessionConfig, ClockConfig clockConfig) throws ServiceException, PortalException
	{
		ManagerFactory.getLockManager().unlockExpiredLocks();
	}
}
